package main

import "fmt"

func main() {
	const PI float32 = 3.14
	const PI_3 = 3.1415

	const (
		width  = 200
		height = 300
	)

	const w, h = 100, 200

	/* iota */
	const (
		a1 = iota
		a2 = iota
		a3 = iota
	)
	fmt.Printf("a1: %v\n", a1)
	fmt.Printf("a2: %v\n", a2)
	fmt.Printf("a3: %v\n", a3)

	const a4 = iota
	fmt.Printf("a4: %v\n", a4)

	const a5, a6, a7 = iota, iota, iota
	fmt.Printf("a5: %v\n", a5)
	fmt.Printf("a6: %v\n", a6)
	fmt.Printf("a7: %v\n", a7)

	/* iota 使用 '_' 跳过 */
	const (
		a8 = iota
		_
		a9 = iota
	)
	fmt.Printf("a8: %v\n", a8)
	fmt.Printf("a9: %v\n", a9)

	/* iota 使用 中间插队, iota值按跳过处理 */
	const (
		a10 = iota
		a11 = 100
		a12 = iota
	)
	fmt.Printf("a10: %v\n", a10)
	fmt.Printf("a11: %v\n", a11)
	fmt.Printf("a12: %v\n", a12)

}
